<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Public/meta" />
</head>
<body>
<div class="info-center">
    <div class="page-header">
        <h3>当前位置：</h3>
        <div class="pull-left">
            <h4>【{$title.admin_name}】 ---> 【会员列表】</h4>
        </div>
        <a href="{:U('agent/get_children_agent_list',array('id'=>$title[admin_id]))}"  class="btn btn-primary pull-right margin-top">查看代理商列表</a>



    </div>
    <div class="clearfix"></div>
    <div class="table-margin">
        <table class="table table-hover table-header" id="list-table">
            <thead>
            <tr>
                <td>编号</td>
                <td>会员账号</td>
                <td>手机号码</td>
                <td class="w20">添加时间</td>
                <td>当前折扣</td>
                <td>状态</td>
                <td class="w10">操作</td>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo['id']}</td>
                    <td>{$vo['username']}</td>
                    <td>{$vo['phone']}</td>
                    <td>{$vo['add_agent_time']}</td>
                    <td>{$vo['zhekou']}</td>
                    <td>
                        <if condition="$vo.status eq 1">
                            正常
                            <else/>
                            <font color="red">禁用</font>
                        </if>
                    </td>
                    <td><a href="{:U('Admin/agent/get_order_list_by_userId',array('id'=>$vo['id'],'agent_id' => $title['admin_id']))}" title="查看修改记录" style="cursor:pointer" class="m">查看订单列表</a></td>

                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pageers">
            <ul>
                {$show}
            </ul>
        </div>
    </div>
</div>
<script type="text/javascript" src="__ADMIN_JS__/common.js"></script>
</body>
</html>
